import { request } from '@/utils/request'

/**
 * login
 * @returns
 * 用户账号密码登录
 * data: {
 * password: string,
 * mobile: string
 * }
 */
export const UserPwdLogin = (data: any) => {
  return request('POST', 'login/password', data)
}

/**
 * 获取用户的个人信息
 */
export const getMyUser = () => {
  return request('GET', 'patient/myUser')
}
